﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HeadCounter.Armourer.Base
{
    internal static class Helpers
    {
        // todo this is in two places now and should be refactored (i.e. a base assembly blow Data and Armoury).
        public static void ForEach<T>(this IEnumerable<T> source, Action<T> func)
        {
            foreach (T item in source)
            {
                func(item);
            }
        }
    }
}
